

#ifndef SAF_MODULE_IOCPMESSAGEROUTER_H
#define SAF_MODULE_IOCPMESSAGEROUTER_H

#include "../../include/TMessageRouter.h"

DECLARE_MESSAGE_ROUTER(IOCPMessageRouter);

class IOCPMessageRouter:public SAF::IMessageRouter
{
public: 
	virtual bool Init(SAF::IKernel*, SAF::IConfig*);
	virtual void Release();
public:
	virtual bool SendNetMessage(const SAF::IConnection *, const SAF::NetMessage&, const SAF::NetBuffer *, unsigned int count);
	virtual bool RecvNetMessage(SAF::IConnection *&, SAF::NetPackage &, unsigned int time);
	virtual bool DropConnection(const SAF::IConnection *);
private:	
	SAF::IKernel * m_hostKernel;
};


#endif	//#ifndef SAF_MODULE_IOCPMESSAGEROUTER_H
